home *** CD-ROM | disk | FTP | other *** search
/ Chip 1996 November / Chip 11-96.iso / workshop / howto / mail < prev    next >
Text File  |  1996-05-25  |  25KB  |  656 lines

  1.   The Linux Electronic Mail HOWTO
  2.   Vince Skahan, <vince@victrola.wa.com>
  3.   v1.16, 6 Aug 1994
  4.  
  5.   This document describes the setup and care+feeding of Electronic Mail
  6.   (e-mail) under Linux.  You need to read this if you plan to communi-
  7.   cate locally or to remote sites via electronic mail.  You probably do
  8.   *not* need to read this document if don't exchange electronic mail
  9.   with other users on your system or with other sites.
  10.  
  11.   1.  Introduction
  12.  
  13.   The intent of this document is to answer some of the questions and
  14.   comments that appear to meet the definition of 'frequently asked
  15.   questions' about e-mail software under Linux.
  16.  
  17.   This document and the corresponding UUCP and News 'HOWTO' documents
  18.   collectively supersede the UUCP-NEWS-MAIL-FAQ that has previously been
  19.   posted to comp.os.linux.announce.
  20.  
  21.  
  22.   1.1.  New versions of this document
  23.  
  24.  
  25.   New versions of this document will be periodically posted to
  26.   comp.os.linux.announce, comp.answers, and news.answers.  They will
  27.   also be added to the various anonymous ftp sites who archive such
  28.   information including sunsite.unc.edu:/pub/Linux/docs/HOWTO.
  29.  
  30.  
  31.   1.2.  Feedback
  32.  
  33.  
  34.   I am interested in any feedback, positive or negative, regarding the
  35.   content of this document via e-mail.  Definitely contact me if you
  36.   find errors or obvious omissions.
  37.  
  38.   I read, but do not necessarily respond to, all e-mail I receive.
  39.   Requests for enhancements will be considered and acted upon based on
  40.   that day's combination of available time, merit of the request, and
  41.   daily blood pressure :-)
  42.  
  43.   Flames will quietly go to /dev/null so don't bother.
  44.  
  45.   Feedback concerning the actual format of the document should go to the
  46.   HOWTO coordinator - Matt Welsh (mdw@sunsite.unc.edu).
  47.  
  48.  
  49.   1.3.  Copyright Information
  50.  
  51.  
  52.   The Mail-HOWTO is copyrighted (c)1994 Vince Skahan.
  53.  
  54.   A verbatim copy may be reproduced or distributed in any medium
  55.   physical or electronic without permission of the author.  Translations
  56.   are similarly permitted without express permission if it includes a
  57.   notice on who translated it.
  58.  
  59.   Short quotes may be used without prior consent by the author.
  60.   Derivative work and partial distributions of the Mail-HOWTO must be
  61.   accompanied with either a verbatim copy of this file or a pointer to
  62.   the verbatim copy.
  63.  
  64.   Commercial redistribution is allowed and encouraged; however, the
  65.   author would like to be notified of any such distributions.
  66.  
  67.   In short, we wish to promote dissemination of this information through
  68.   as many channels as possible. However, we do wish to retain copyright
  69.   on the HOWTO documents, and would like to be notified of any plans to
  70.   redistribute the HOWTOs.
  71.  
  72.   We further want that ALL information provided in the HOWTOS is
  73.   disseminated.  If you have questions, please contact Matt Welsh, the
  74.   Linux HOWTO coordinator, at mdw@sunsite.unc.edu, or +1 607 256 7372.
  75.  
  76.  
  77.   1.4.  Standard Disclaimer
  78.  
  79.  
  80.   Of course, I disavow any potential liability for the contents of this
  81.   document.  Use of the concepts, examples, and/or other content of this
  82.   document is entirely at your own risk.
  83.  
  84.  
  85.   1.5.  Other sources of information
  86.  
  87.  
  88.  
  89.   1.5.1.  LINUX HOWTO Documents:
  90.  
  91.  
  92.   There is plenty of exceptional material provided in the other Linux
  93.   HOWTO documents and from the Linux DOC project.  In particular, you
  94.   might want to take a look at the following:
  95.  
  96.  
  97.   o  the Serial Communications HOWTO
  98.  
  99.   o  the Ethernet HOWTO
  100.  
  101.   o  the Linux Networking Administration Guide
  102.  
  103.  
  104.   1.5.2.  USENET:
  105.  
  106.  
  107.  
  108.              comp.mail.elm           the ELM mail system.
  109.              comp.mail.mh            The Rand Message Handling system.
  110.              comp.mail.mime          Multipurpose Internet Mail Extensions.
  111.              comp.mail.misc          General discussions about computer mail.
  112.              comp.mail.multi-media   Multimedia Mail.
  113.              comp.mail.mush          The Mail User's Shell (MUSH).
  114.              comp.mail.sendmail      the BSD sendmail agent.
  115.              comp.mail.smail         the smail mail agent.
  116.              comp.mail.uucp          Mail in the uucp environment.
  117.  
  118.  
  119.  
  120.  
  121.   1.5.3.  Books
  122.  
  123.  
  124.   The following is a non-inclusive set of books that will help...
  125.  
  126.  
  127.   o  "Managing UUCP and USENET" from O'Reilly and Associates is in my
  128.      opinion the best book out there for figuring out the programs and
  129.      protocols involved in being a USENET site.
  130.  
  131.   o  "Unix Communications" from The Waite Group contains a nice
  132.      description of all the pieces (and more) and how they fit together.
  133.   o  "Sendmail" from O'Reilly and Associates looks to like the
  134.      definitive reference on sendmail-v8 and sendmail+IDA.  It's a "must
  135.      have" for anybody hoping to make sense out of sendmail without
  136.      bleeding in the process.
  137.  
  138.   o  "The Internet Complete Reference" from Osborne is a fine reference
  139.      book that explains the various services available on Internet and
  140.      is a great "one-stop-shopping" source for information on news,
  141.      mail, and various other Internet resources.
  142.  
  143.  
  144.   1.6.  Where *NOT* to look for help
  145.  
  146.  
  147.   There is nothing "special" about configuring and running mail under
  148.   Linux (any more).  Accordingly, you almost certainly do *NOT* want to
  149.   be posting generic mail-related questions to the comp.os.linux.*
  150.   newsgroups.
  151.  
  152.   Unless your posting is truly Linux-specific (ie, "please tell me what
  153.   routers are already compiled into the SLS1.03 version of smail3.1.28")
  154.   you should be asking your questions in one of the newsgroups or
  155.   mailing lists referenced above.
  156.  
  157.   Let me repeat that.
  158.  
  159.   There is virtually no reason to post anything mail-related in the
  160.   comp.os.linux hierarchy any more.  There are existing newsgroups in
  161.   the comp.mail.* hierarchy to handle *ALL* your questions.
  162.  
  163.   IF YOU POST TO COMP.OS.LINUX.* FOR NON-LINUX-SPECIFIC QUESTIONS, YOU
  164.   ARE LOOKING IN THE WRONG PLACE FOR HELP.  THE ELECTRONIC MAIL EXPERTS
  165.   HANG OUT IN THE PLACES INDICATED ABOVE AND GENERALLY DO NOT RUN LINUX.
  166.  
  167.   POSTING TO THE LINUX HIERARCHY FOR NON-LINUX-SPECIFIC QUESTIONS WASTES
  168.   YOUR TIME AND EVERYBODY ELSE'S...AND IT FREQUENTLY DELAYS YOU FROM
  169.   GETTING THE ANSWER TO YOUR QUESTION.
  170.  
  171.  
  172.   2.  Hardware Requirements
  173.  
  174.   There are no specific hardware requirements for mail under Linux.
  175.  
  176.   You'll need some sort of 'transport' software to connect to remote
  177.   systems, which means either tcp-ip or uucp.   This could mean that you
  178.   need a modem or ethernet card (depending on your setup).
  179.  
  180.  
  181.   3.  Getting the software
  182.  
  183.   In general, I grab my sources from ftp.uu.net and the other fine
  184.   archive sites on Internet.  In addition, Linux-specific binary ports
  185.   are found in the usual Linux distrbutions and on the usual Linux
  186.   anonymous ftp sites (sunsite.unc.edu and tsx-11.mit.edu in
  187.   particular).
  188.  
  189.   The newspak-2.2.tar.z distribution contains config files and readme
  190.   files related to building uucp, news, and mail software under Linux
  191.   from the various freely-available sources.  It can usually be found in
  192.   sunsite.unc.edu:/pub/Linux/system/Mail.
  193.  
  194.  
  195.   4.  Mail 'Transport Agents'
  196.  
  197.   This section contains information related to 'transport agents', which
  198.   means the underlying software that connects your local system to
  199.   remote systems.
  200.  
  201.  
  202.   4.1.  Smail v3.1
  203.  
  204.   Smail3.1 seems to be a de-facto standard transport agent for uucp-only
  205.   sites and for some smtp sites.  It compiles without patching from the
  206.   sources.  In addition, smail is provided in binary form in the SLS
  207.   distribution of Linux.
  208.  
  209.   The newspak distribution contains config files for smail3.1.28 under
  210.   Linux that you can use to start with.
  211.  
  212.   If you're building smail from sources, you need to have the following
  213.   in your os/linux file so that 'sed' gives you shell scripts that work
  214.   properly.
  215.  
  216.           CASE_NO_NEWLINES=true
  217.  
  218.  
  219.  
  220.   For a uucp-only system that has a MX-record and that wants a
  221.   domainized header (who goes through a smart-host for everything),
  222.   these are the entire config files you'll need:
  223.  
  224.  
  225.   o  replace 'subdomain.domain' with your domain name
  226.  
  227.   o  replace 'myhostname' with you un-domainized hostname
  228.  
  229.   o  replace 'my_uucp_neighbor' with the uucp name of your upstream site
  230.  
  231.  
  232.              #-------- /usr/local/lib/smail/config -----------------
  233.              #
  234.              # domains we belong to
  235.              visible_domain=subdomain.domain:uucp
  236.              #
  237.              # who we're known as (fully-qualified-site-name)
  238.              visible_name=myhostname.subdomain.domain
  239.              #
  240.              # who we go through
  241.              smart_path=my_uucp_neighbor
  242.              #
  243.              #---------- /usr/local/lib/smail/paths --------------
  244.              #
  245.              # we're a domainized site, make sure we accept mail to both names
  246.              myhostname        %s
  247.              myhostname.subdomain.domain      %s
  248.              #
  249.              #-------------------------------------------------------------------
  250.  
  251.  
  252.   To run smail as a smtp daemon, add the following to /etc/inetd.conf:
  253.  
  254.                   smtp stream tcp nowait  root  /usr/bin/smtpd smtpd
  255.  
  256.  
  257.   Outgoing mail gets sent automatically, when using elm. If your inter-
  258.   net link is down when you send mail, then the mail sits in
  259.   "/usr/spool/smail/input".  When the link next comes up, "runq" is run
  260.   which causes the mail to be sent.
  261.  
  262.  
  263.  
  264.  
  265.   4.2.  Sendmail+IDA
  266.  
  267.   I run a uucp-only site and use sendmail5.65b+IDA1.5 instead of
  268.   smail3.1.28 due to the incredible ease of use.  There is a binary
  269.   distribution in sunsite.unc.edu:pub/Linux/system/Mail.  To install it:
  270.  
  271.  
  272.   o  you'll probably want to remove (or rename) all the files from smail
  273.      (see the /install/installed directory if you are SLS) to be safe.
  274.  
  275.   o  cd to / then "gunzip -c sendmail5.65b+IDA1.5.tpz | tar xvf -" If
  276.      you have a "modern" tar from a recent Slackware (for example) you
  277.      can probably just do a "tar -zxvf filename.tgz" and get the same
  278.      results.
  279.  
  280.   o  cd to /usr/local/lib/mail/CF and copy the sample.m4 local.m4 file
  281.      to "yourhostname.m4".  Edit out the distributed hostname, aliases,
  282.      and smarthost and put in the correct one for your site.  The
  283.      default file is for a uucp-only site who has domainized headers and
  284.      who talks to a smart host.  Then "make yourhostname.cf" and move
  285.      the resulting file to /etc/sendmail.cf
  286.  
  287.   o  if you are uucp-only, you do *NOT* need to create any of the tables
  288.      mentioned in the README.linux file.  You'll just have to touch the
  289.      files so that the Makefile works.  Just edit the .m4 file, make
  290.      sendmail.cf, and start testing it.
  291.  
  292.   o  if you're uucp-only and you talk to sites in addition to your
  293.      "smart-host", you'll need to add uucpxtable entries for each (or
  294.      mail to them will also go through the smart host) and run dbm
  295.      against the revised uucpxtable.
  296.  
  297.   o  if you use my sendmail5.67b+IDA1.5 distribution you should not use
  298.      a "freeze file".
  299.  
  300.   o  If you run Rich Braun's original binary distribution of 5.67a,
  301.      you'll need to freeze the configuration if you change your .cf file
  302.      with "/usr/lib/sendmail -bz" to make the changes take effect.  You
  303.      should also update your version to at least 5.67b since there is a
  304.      nasty security hole in 5.67a and earlier.
  305.  
  306.   Another nice thing is that if you have mail.debug set and you run
  307.   syslogd, your incoming and outgoing mail messages will get logged.
  308.   See the /etc/syslog.conf file for details.
  309.  
  310.   The sources for sendmail+IDA may be found at uxc.cso.uiuc.edu.  They
  311.   require no patching to run under Linux.
  312.  
  313.   If you're going to run sendmail+IDA, I strongly recommend you go to
  314.   the sendmail5.67b+IDA1.5 version since all required Linux-specific
  315.   patches are now in the vanilla sources and several security holes have
  316.   been plugged that WERE (!!!) in the older version you may have grabbed
  317.   or built before about December 1st, 1993.
  318.  
  319.   The May/June 1994 edition of Linux Journal has an extensive article on
  320.   the care and feeding of sendmail+IDA.  The coming edition of the Linux
  321.   DOC Project Networking Administration Guide will have an even more
  322.   detailed and complete version.
  323.  
  324.  
  325.   4.2.1.  The sendmail.m4 file
  326.  
  327.   Sendmail+IDA requires you to set up a sendmail.m4 file rather than
  328.   editing the sendmail.cffile directly.  The nice thing about this is
  329.   that it is simple to set up mail configurations that are extremely
  330.   difficult (if not totally impossible for most people to set up
  331.   correctly) in smail or traditional sendmail.
  332.  
  333.   The sendmail.m4 file that corresponds to the above smail example looks
  334.   like the following:
  335.  
  336.     dnl #------------------ SAMPLE SENDMAIL.M4 FILE ------------------
  337.     dnl #
  338.     dnl # (the string 'dnl' is the m4 equivalent of commenting out a line)
  339.     dnl #
  340.     dnl # you generally don't want to override LIBDIR from the compiled in paths
  341.     dnl #define(LIBDIR,/usr/local/lib/mail)dnl    # where all support files go
  342.     define(LOCAL_MAILER_DEF, mailers.linux)dnl    # mailer for local delivery
  343.     define(POSTMASTERBOUNCE)dnl                   # postmaster gets bounces
  344.     define(PSEUDODOMAINS, BITNET UUCP)dnl         # don't try DNS on these
  345.     dnl #
  346.     dnl #-------------------------------------------------------------
  347.     dnl #
  348.     dnl # names we're known by
  349.     define(PSEUDONYMS, myhostname.subdomain.domain myhostname.UUCP)
  350.     dnl #
  351.     dnl # our primary name
  352.     define(HOSTNAME, myhostname.subdomain.domain)
  353.     dnl #
  354.     dnl # our uucp name
  355.     define(UUCPNAME, myhostname)dnl
  356.     dnl #
  357.     dnl #-------------------------------------------------------------
  358.     dnl #
  359.     define(UUCPNODES, |uuname|sort|uniq)dnl       # our uucp neighbors
  360.     define(BANGIMPLIESUUCP)dnl                    # make certain that uucp
  361.     define(BANGONLYUUCP)dnl                       #  mail is treated correctly
  362.     define(RELAY_HOST, my_uucp_neighbor)dnl       # our smart relay host
  363.     define(RELAY_MAILER, UUCP-A)dnl               # we reach moria via uucp
  364.     dnl #
  365.     dnl #--------------------------------------------------------------------
  366.     dnl #
  367.     dnl # the various dbm lookup tables
  368.     dnl #
  369.     define(ALIASES, LIBDIR/aliases)dnl            # system aliases
  370.     define(DOMAINTABLE, LIBDIR/domaintable)dnl    # domainize hosts
  371.     define(PATHTABLE, LIBDIR/pathtable)dnl        # paths database
  372.     define(GENERICFROM, LIBDIR/generics)dnl       # generic from addresses
  373.     define(MAILERTABLE, LIBDIR/mailertable)dnl    # mailers per host or domain
  374.     define(UUCPXTABLE, LIBDIR/uucpxtable)dnl      # paths to hosts we feed
  375.     define(UUCPRELAYS, LIBDIR/uucprelays)dnl      # short-circuit paths
  376.     dnl #
  377.     dnl #--------------------------------------------------------------------
  378.     dnl #
  379.     dnl # include the 'real' code that makes it all work
  380.     dnl # (provided with the source code)
  381.     dnl #
  382.     include(Sendmail.mc)dnl                         # REQUIRED ENTRY !!!
  383.     dnl #
  384.     dnl #------------ END OF SAMPLE SENDMAIL.M4 FILE -------
  385.  
  386.  
  387.  
  388.  
  389.  
  390.   4.2.2.  Defining a local mailer
  391.  
  392.   Unlike most Unix distributions, Linux does not come with a local mail
  393.   delivery agent by default.  I recommend using the commonly available
  394.   deliver program, which is an optional package in a number of the usual
  395.   Linux distributions.  In order to do so, you need to define a
  396.   LOCAL_MAILER_DEF in the sendmail.m4 file that points to a file that
  397.   looks like:
  398.  
  399.  
  400.     # -- /usr/local/lib/mail/mailers.linux --
  401.     #     (local mailers for use on Linux )
  402.     Mlocal, P=/usr/bin/deliver, F=SlsmFDMP, S=10, R=25/10, A=deliver $u
  403.     Mprog,  P=/bin/sh,       F=lsDFMeuP,   S=10, R=10, A=sh -c $u
  404.  
  405.  
  406.  
  407.   There is a also built-in default for deliver in the Sendmail.mc file
  408.   that gets included into the sendmail.cf file.  To specify it, you
  409.   would not use the mailers.linux file but would instead define the
  410.   following in your sendmail.m4 file:
  411.  
  412.  
  413.      dnl --- (in sendmail.m4) ---
  414.      define(LOCAL_MAILER_DEF, DELIVER)dnl       # mailer for local delivery
  415.  
  416.  
  417.  
  418.   Unfortunately, Sendmail.mc assumes deliver is installed in /bin, which
  419.   is not the case with Slackware1.1.1 (which installs it in /usr/bin).
  420.   In that case you'd need to either fake it with a link or rebuild
  421.   deliver from sources so that it resides in /bin.
  422.  
  423.  
  424.   4.2.3.  The Sendmail+IDA dbm Tables
  425.  
  426.   Setting up special behavior for sites or domains is done through a
  427.   number of optional dbm tables rather than editing the sendmail.cf file
  428.   directly.  Refer to the July-1994 issue of Linux Journal, to the docs
  429.   in the sources, or to the sendmail chapter in the newest version of
  430.   the Linux DOC Project Networking Administration Guide which will be
  431.   available real-soon-now for more details.
  432.  
  433.  
  434.   o  mailertable   - defines special behavior for remote hosts or
  435.      domains.
  436.  
  437.   o  uucpxtable    - forces UUCP delivery of mail to hosts that are in
  438.      DNS format.
  439.  
  440.   o  pathtable     - defines UUCP bang-paths to remote hosts or domains.
  441.  
  442.   o  uucprelays    - short-circuits the pathalias path to well-known
  443.      remote hosts.
  444.  
  445.   o  genericfrom   - converts internal addresses into generic ones
  446.      visible to the outside world.
  447.  
  448.   o  xaliases      - converts generic addresses to/from valid internal
  449.      ones.
  450.  
  451.   o  decnetxtable  - converts RFC-822 addresses to DECnet-style
  452.      addresses.
  453.  
  454.  
  455.   4.2.4.  So Which Entries are Really Required?
  456.  
  457.   When not using any of the optional dbm tables, sendmail+IDA delivers
  458.   mail via the DEFAULT_MAILER (and possibly RELAY_HOST and RELAY_MAILER)
  459.   defined in the sendmail.m4 file used to generate sendmail.cf.  It is
  460.   easily possible to override this behavior through entries in the
  461.   domaintable or uucpxtable.
  462.  
  463.   A generic site that is on Internet and speaks Domain Name Service, or
  464.   one that is UUCP-only and forwards all mail via UUCP through a smart
  465.   RELAY_HOST, probably does not need any specific table entries at all.
  466.  
  467.   Virtually all systems should set the DEFAULT_HOST and PSEUDONYMS
  468.   macros, which define the canonical site name and aliases it is known
  469.   by, and DEFAULT_MAILER.  If all you have is a relay host and relay
  470.   mailer, you don't need to set these defaults since it works
  471.   automagically.
  472.  
  473.   UUCP hosts will probably also need to set UUCPNAME to their official
  474.   UUCP name.  They will also probably set RELAY_MAILER, and RELAY_HOST
  475.   which enable smart-host routing through a mail relay.  The mail
  476.   transport to be used is defined in RELAY_MAILER and should usually be
  477.   UUCP-A for UUCP sites.
  478.  
  479.   If your site is SMTP-only and talks `Domain Name Service', you would
  480.   change the DEFAULT_MAILER to TCP-A and probably delete the
  481.   RELAY_MAILER and RELAY_HOST lines.
  482.  
  483.  
  484.   4.3.  Sendmail 8.6
  485.  
  486.   Sendmail 8.6.x from Berkeley is the latest major revision after
  487.   sendmail5.  It has wonderful built-in support for building under
  488.   Linux.  Just "make linux" and you'll be all set.
  489.  
  490.  
  491.   4.4.  Other "transport agents"
  492.  
  493.   The following also are known to run under Linux.  Consult "archie" for
  494.   details regarding how to find them...
  495.  
  496.  
  497.   o  smail2.5 - very simple UUCP-based smail
  498.  
  499.  
  500.   4.5.  Local Delivery Agents
  501.  
  502.   Unlike most operating systems, Linux does not have mail "built-in".
  503.   You'll need a program to deliver the local mail.  One good program is
  504.   Rich Braun's "lmail" program, but I've switched to using the more
  505.   commonly available "deliver" program.
  506.  
  507.   Documentation for how to use either for local delivery is in the
  508.   sendmail5.67b+IDA1.5 binary release (on sunsite) mentioned above.
  509.  
  510.  
  511.   5.  Mail "User Agents"
  512.  
  513.   This section contains information related to "user agents", which
  514.   means the software the user sees and uses.  This software relies on
  515.   the "transport agents" mentioned above.
  516.  
  517.  
  518.   5.1.  Elm
  519.  
  520.   Elm compiles, installs, and runs flawlessly under Linux up to and
  521.   through Slackware 1.1.1 (gcc2.4.5, gcclib 4.4.4).  For more
  522.   information, see the elm sources and installation instructions.
  523.  
  524.   The only thing to know is that Elm's Configure script incorrectly sets
  525.   the "ranlib" variable in config.sh.  The Elm Development Team has been
  526.   informed of this little problem, so please don't bother them with it
  527.   (again).
  528.  
  529.   o  (from  Chip Rosenthal - chip@chinacat.unicom.com ) The easiest way
  530.      to deal with this is to create a file called config.over at the top
  531.      of you Elm source tree and include the line:
  532.  
  533.              ranlib='ranlib'
  534.  
  535.  
  536.  
  537.   o  Alternatively, you can just remember to correctly edit the line in
  538.      config.sh when Configure gives you the chance to do so.
  539.  
  540.   o  Elm and filter need to be mode 2755 (group mail) with
  541.      /usr/spool/mail mode 775 and group mail.
  542.  
  543.      If you use a binary distribution, you'll need to create a
  544.      /usr/local/lib/elm/elm.rc file to override the compiled-in hostname
  545.      and domain information:
  546.  
  547.  
  548.   o  replace "subdomain.domain" with your domain name replace
  549.  
  550.   o  "myhostname" with you un-domainized hostname replace
  551.  
  552.   o  "my_uucp_neighbor" with the uucp name of your upstream site
  553.  
  554.  
  555.              #---------- /usr/local/lib/elm/elm.rc ------------------
  556.              #
  557.              # this is the unqualified hostname
  558.              hostname = myhostname
  559.              #
  560.              # this is the local domain
  561.              hostdomain = subdomain.domain
  562.              #
  563.              # this is the fully qualified hostname
  564.              hostfullname = myhostname.subdomain.domain
  565.              #
  566.              #--------------------------------------------------------
  567.  
  568.  
  569.   One thing you want to be aware of is that if you have Elm compiled to
  570.   be MIME-able, you need metamail installed and in your path or Elm will
  571.   not be able to read MIME mail you've received.  Metamail is available
  572.   on thumper.bellcore.com and of course via "archie".
  573.  
  574.   We have heard reports that gcc and gcclib newer than v2.4.5 and v4.4.4
  575.   respectively are rather strict and fail to compile Elm.  Here's the
  576.   scoop as reported by  ccnp@unitrix.utr.ac.za (Neil Parker)  who
  577.   forwarded a posting by  longyear@netcom.com (Al Longyear).
  578.  
  579.  
  580.   o  ELM is using internal fields in the FILE structure in an effort to
  581.      bypass the standards. (The _flag, _IOERR, and _IOEOF are old fields
  582.      for the pre-POSIX runtime package. While POSIX doesn't say that you
  583.      can't define these fields, it does not say that you _must_. Linux
  584.      does not. It does say that programs should not be written to use
  585.      them, even if they are in the implementation.)
  586.  
  587.               where it does         if (fp->_flag & _IOERR) ...
  588.               change it to          if (ferror(fp)) ....
  589.  
  590.               where it does         if (fp->_flag & _IOEOF) ...
  591.               change it to          if (feof(fp)) ...
  592.  
  593.               These are the ANSI/POSIX definitions for the same function.
  594.  
  595.   o  While this item is not Linux-specific, it's a nagging bug
  596.      nevertheless.  We've heard that Elm sometimes fails with a message
  597.      that it's unable to malloc() some massive number of bytes.  This
  598.      has been identified as an Elm Bug.  The identified workaround is to
  599.      remove the post-processed global mail aliases (aliases.dir and
  600.      aliases.pag).
  601.  
  602.  
  603.   o  (from  scot@catzen.gun.de (Scot W. Stevenson) )
  604.  
  605.      The current metamail package requires csh for some of its scripts.
  606.      Failure to have csh (or tcsh) will cause most interesting errors...
  607.  
  608.  
  609.   5.2.  Mailx
  610.  
  611.   There is a fine binary implementation of mailx located on the various
  612.   Linux archive sites.  Make sure you grab version 5.3b or later since
  613.   there are security problems in v5.3a.  If you're into building from
  614.   sources, mailx v5.5 compiles without patching under Linux if you have
  615.   "pmake" installed.
  616.  
  617.   The only potential problem I'm aware of with the binary distribution
  618.   on sunsite is that it seems to be compiled in a way that requires
  619.   /usr/lib/smail rather than /usr/lib/sendmail as a transport agent.
  620.   You probably need a link if you run sendmail on your system.
  621.  
  622.   If anybody is still using it, I strongly recommend removing the old
  623.   "edmail" stuff from SLS1.00 and replacing it with mailx.
  624.  
  625.  
  626.   5.3.  Other user agents
  627.  
  628.   The following also are known to run under Linux.  Consult "archie" for
  629.   details regarding how to find them...
  630.  
  631.   o  Pine      - from the Univ. of Washington
  632.  
  633.   o  Metamail  - allows MIME support
  634.  
  635.   o  mh      - yet another way to handle mail
  636.  
  637.   o  deliver   - file/process mail based on rules
  638.  
  639.   o  procmail  - file/process mail based on rules
  640.  
  641.   o  Majordomo - manages e-mail lists
  642.  
  643.   o  Mserv     - provide files-by-mail
  644.  
  645.  
  646.   6.  Acknowledgements
  647.  
  648.   The following people have helped in the assembly of the information
  649.   (and experience) that helped make this document possible:
  650.  
  651.   Steve Robbins, Ian Kluft, Rich Braun, Ian Jackson, Syd Weinstein, Ralf
  652.   Sauther, Martin White, Matt Welsh, Ralph Sims, Phil Hughes, Chip
  653.   Rosenthal, Scot Stevenson, Neil Parker
  654.  
  655.   If I forgot anybody, my apologies...
  656.